/**
 * Test error-statistics.
 */
public class Stats
{
    /**
     * Total number of tokens.
     */
    public int total = 0;

    /**
     * Number of tokens with incorrect currently chosen tag.
     */
    public int error = 0;

    /**
     * Number of tokens with undefined correct tag.
     */
    public int undefined = 0;

    /**
     * Add given statistics to current.
     *
     * @param stats
     */
    public void Add(Stats stats)
    {
        this.total += stats.total;
        this.error += stats.error;
        this.undefined += stats.undefined;
    }

    @Override
    public String toString()
    {
        return String.format("Total: %d, Error: %d, Undefined: %d", this.total, this.error, this.undefined);
    }
}
